/*
 * $Id: codetemplates.xml ver yyyy-mm-dd rb $
 */
package xml2table.qinyi;

/**
 *
 * @author ts-biao.zhang
 */
public class Column {

    private String name;
    private String type;
    private String length;
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getType() {
        return type;
    }
    public void setType(String type) {
        this.type = type;
    }
    public String getLength() {
        return length;
    }
    public void setLength(String length) {
        this.length = length;
    }
    public String getCreateString()
    {
        if(Constant.VARCHAR_STRING.equals(this.type))
            return name + " " + this.type + "(" + this.length + ")";
        else
            return name + " " + this.type;
    }
}
